package com.tuanzi.loan.business.repository.statistics.custom;

import com.tuanzi.loan.business.entity.collaborate.StatCollaborateCheckIn;
import com.tuanzi.loan.vo.request.statistics.login.StatCheckInRequest;
import com.tuanzi.loan.vo.response.statistics.login.StatCheckInResponse;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.List;

/**
 * @Author: chenweijun
 * @Date: 2019/3/13 17:48
 * @Description:
 */
public interface StatCheckInCustomRepository {

    Page<StatCheckInResponse> list(StatCheckInRequest request, Pageable pageable);

    List<StatCollaborateCheckIn> findAllByCreateDateAndChannelIn(List<Integer> channels, Date date);

    Integer getUv(Date settlementTime, Long channelId);
}
